package com.xh.blog.user.api;
import com.xh.blog.common.wrapper.ResponseWrapper;
import com.xh.blog.user.model.dto.UserInfoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by xieha on 2019-11-23.
 */
//@FeignClient(name = "provider", url = "http://localhost:8081")
public interface UserInfoApi {
    @RequestMapping(value = "/userinfo", method = RequestMethod.POST)
    public ResponseWrapper<Long> insertUserInfo(UserInfoDto userInfoDto);
    @RequestMapping(value = "api/open/user/{userId}", method = RequestMethod.GET)
    public ResponseWrapper<UserInfoDto> getUserInfo(@PathVariable("userId") Long id);

}
